from rest_framework import serializers
from frame_server.serializers import BaseSerializer as BSerializer
from .models import LogError

class BaseSerializer(BSerializer):
    id = serializers.CharField()
    class Meta:
        model = LogError

# 错误日志列表数据序列化
class ErrorListSerializer(BaseSerializer):
    class Meta(BaseSerializer.Meta):
        fields = "__all__"

# 错误日志详情数据序列化
class ErrorDetailSerializer(BaseSerializer):
    class Meta(BaseSerializer.Meta):
        fields = "__all__"